import axios from 'axios'

export const TenderProjectInfoService = class TenderProjectInfoService {
    static tenderProjectInfoService = null
    requestUrl = 'http://localhost/tenderProjectInfos'

    static getInstance() {
        if (this.tenderProjectInfoService == null) {
            this.tenderProjectInfoService = new TenderProjectInfoService()
        }
        return this.tenderProjectInfoService
    }

    /**
     * 查询投标项目信息的方法
     * @param params
     * @returns {Promise<AxiosResponse<T>>}
     */
    getPageList(params) {
        return axios.get(`${this.requestUrl}/page`,{
            params
        })
    }
}
